﻿@model IEnumerable<Article>
<ul class="ui-helper-reset" style="padding: 10px;">
    @foreach (var art in Model)
    {
        var article = new ArticleWrapper(art);
        if (!article.IsVisible(Context))
        {
            continue;
        }
        <li>
            <table>
                <tr>
                    <td style="vertical-align: top;">
                        @if (!string.IsNullOrEmpty(article.ImageUrl))
                        { 
                            <img src="@Url.Content(article.ImageUrl)" alt="@article.Title" title="@article.Title" />
                        }
                    </td>
                    <td style="vertical-align: top;">
                        <h3 style="margin-top: 0px;">
                            @Publishing.PostLink(article, (int)ViewData["TextLen"])
                        </h3>
                        @Publishing.PostSummary(article)
                        <div>
                            <i style="color: #cccccc;">
                                @if ((bool)ViewData["ShowAuthor"])
                                {
                                    @Html.Global("RES_POSTBY") @Html.UserLink(article.Author.UserName)
                                }
                                @if ((bool)ViewData["ShowDate"])
                                {
                                    @Html.Global(article.Posted)
                                }
                            </i>
                        </div>
                    </td>
                </tr>
            </table>
        </li>   
    }
</ul>
